<?php	

	if (empty($params['pages_html_id'])) error('No pages_html_id specified');
	else {
		$pages_html = db_select($params['pages_html_id'], 'pages_html', true);
		if (empty($pages_html['id'])) error('Failed to get HTML Content');
		elseif ($pages_html['pages_id'] != 0 && $pages_html['pages_id'] != $params['pages_id']) error('This content is not for this page!');
		else echo $pages_html['html'];
	}